﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;
using Shop.SystemSet.Models;
namespace Shop.SystemSet.Repositories
{
    public class SystemSetAccess
    {
        private Database DB = new Database("ConnString");

        /// <summary>
        /// 获取所有模块信息
        /// </summary>
        /// <returns></returns>
        public IList<Shop_Module> GetModuleInfo()
        {
            Sql sql = Sql.Builder.Append("select * from Shop_Module");
            return DB.Fetch<Shop_Module>(sql);
        }
    }
}
